#include "GeneticAlgorithm.h"

void GeneticAlgorithm::Start()
{
	Spectrum * sp = new Spectrum();
	sp->load("czwarty");
	Population * population = new Population(sp,50,250,6,0.5f, 0.3f);
	population->Evolve();
	population->getBestGenotype().Print();	
	printf("Wynik: %f", sp->validate(population->getBestGenotype().getNucleotideChain()));
};

int GeneticAlgorithm::getResult(Population * pop)
{
	return pop->getBestGenotype().Evaluate();
};

